//#include "stdafx.h"
#include "windows.h"
#include "debug.h"

HANDLE g_file;
TCHAR g_debugData[400];

void		debug_info(TCHAR *debugStr)
{
//#ifndef DEBUG_OPERATION
//	return ;
//#endif
	DWORD writeNum;
	char szMulti[500];
	
	WideCharToMultiByte(CP_ACP,0,debugStr,-1,szMulti,500,NULL,NULL);
	strcat(szMulti,"\r\n");
	SetFilePointer(g_file,0,0,FILE_END);
	WriteFile(g_file,szMulti,strlen(szMulti),&writeNum,NULL);
	FlushFileBuffers(g_file);
}

